CPP = g++
CPPFLAGS = -g -Wall -pedantic
LDFLAGS = 
OBJ = $(patsubst %.c++,%.o,$(wildcard *.c++))
BIN = bplc

all : $(BIN)

$(BIN) : $(OBJ)
	$(CPP) -o $(BIN) $(LDFLAGS) $(OBJ)

%.o : %.c++ $(wildcard *.h)
	$(CPP) -c $(CPPFLAGS) $<

clean :
	rm -f $(OBJ) $(BIN)

run : $(BIN)
	./$(BIN)

test : $(BIN)
	./$(BIN) input output

